package com.miao.hong.fang.util;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener implements HttpSessionListener{

	public void sessionCreated(HttpSessionEvent arg0) {
		System.out.println("Session will be created");
		System.out.println("The session id is " + arg0.getSession().getId());		
	}

	public void sessionDestroyed(HttpSessionEvent arg0) {
		System.out.println("Session will be destroyed");
		System.out.println("The session id is " + arg0.getSession().getId());
	}

}
